package com.tiany.java_study_exercise;

public class MyDate {
    int year;
    int month;
    int day;

    //打印日期
    public void print() {
        System.out.println(year + "年 " + month + "月 " + day + "日");
    }
}
